#ifndef TAGDIALOG_H
#define TAGDIALOG_H

#include "qthemeablewidget.h"

namespace Ui {
    class TagDialog;
}

namespace TagLib
{
    class FileRef;
    class Tag;
}

class TagDialog : public QThemeableDialog {
    Q_OBJECT
public:
    TagDialog(QWidget *parent = 0);
    ~TagDialog();

    void setReadOnly        (bool value);
    void setFile            (QString path);

signals:

protected:
    void changeEvent        (QEvent *e);

protected slots:
    bool loadTags           ();
    bool saveTags           ();

private:
    Ui::TagDialog    *ui;
    TagLib::FileRef  *_fref;
    TagLib::Tag      *_tag;
};

#endif // TAGDIALOG_H
